﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ChudeComponent.DAL;
namespace ChudeComponent.BLL
{
    public class Chude : IChude
    {
        public ChudeDAL chudeDAL;
        public Chude()
        {
           chudeDAL = new ChudeDAL();
        }
        #region Ichude Properties
        private int _chu_de_id;

        public int Chu_de_id
        {
            get { return _chu_de_id; }
            set { _chu_de_id = value; }
        }

        private int _ung_dung_id;

        public int Ung_dung_id
        {
            get { return _ung_dung_id; }
            set { _ung_dung_id = value; }
        }

        private string _ma;

        public string Ma
        {
            get { return _ma; }
            set { _ma = value; }
        }

        private string  _ten;

        public string  Ten
        {
            get { return _ten; }
            set { _ten = value; }
        }

        private string _mieuta;

        public string Mieuta
        {
            get { return _mieuta; }
            set { _mieuta = value; }
        }

        private string _icon;

        public string Icon
        {
            get { return _icon; }
            set { _icon = value; }
        }
        private int _thutu;

        public int Thutu
        {
            get { return _thutu; }
            set { _thutu = value; }
        }
        #endregion

        #region Ichude Method
        public void Get()
        {
            chudeDAL.Get(this);
        }
        public int Add()
        {
            return chudeDAL.Add(this);
        }
        public void Update()
        {
            chudeDAL.Update(this);
        }
        public void Delete()
        {
            chudeDAL.Delete(this);
        }
        public List<Chude> GetAll(int currentPage, int pageSize, out int total, string ten, string column_sort, string type_sort)
        {
            return chudeDAL.GetAll(currentPage, pageSize, out total, ten, column_sort, type_sort);
        }
        #endregion

    }
}
